package com.jxc.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Orderlist entity. @author MyEclipse Persistence Tools
 */

public class Orderlist implements java.io.Serializable {

	// Fields

	private Integer id;
	private Order order;
	private Commodity commodity;
	private Integer number;
	private Double price;
	private Integer quantity;
	private String remarks;
	private String sn;
	private Set traclists = new HashSet(0);
	private int stockNumber;

	// Constructors

	public int getStockNumber() {
		return stockNumber;
	}

	public void setStockNumber(int stockNumber) {
		this.stockNumber = stockNumber;
	}

	/** default constructor */
	public Orderlist() {
	}

	/** full constructor */
	public Orderlist(Order order, Commodity commodity, Integer number,
			Double price, Integer quantity, String remarks, String sn,
			Set traclists) {
		this.order = order;
		this.commodity = commodity;
		this.number = number;
		this.price = price;
		this.quantity = quantity;
		this.remarks = remarks;
		this.sn = sn;
		this.traclists = traclists;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Order getOrder() {
		return this.order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Commodity getCommodity() {
		return this.commodity;
	}

	public void setCommodity(Commodity commodity) {
		this.commodity = commodity;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Set getTraclists() {
		return this.traclists;
	}

	public void setTraclists(Set traclists) {
		this.traclists = traclists;
	}

}